import request from '@/utils/request'

// 查询退料入库管理列表
export function listMaterialReturnInbound(query) {
  return request({
    url: '/InboundManagement/materialReturnInbound/list',
    method: 'get',
    params: query
  })
}

// 查询退料入库管理详细
export function getMaterialReturnInbound(returnId) {
  return request({
    url: '/InboundManagement/materialReturnInbound/' + returnId,
    method: 'get'
  })
}

// 新增退料入库管理
export function addMaterialReturnInbound(data) {
  return request({
    url: '/InboundManagement/materialReturnInbound',
    method: 'post',
    data: data
  })
}

// 修改退料入库管理
export function updateMaterialReturnInbound(data) {
  return request({
    url: '/InboundManagement/materialReturnInbound',
    method: 'put',
    data: data
  })
}

// 删除退料入库管理
export function delMaterialReturnInbound(returnId) {
  return request({
    url: '/InboundManagement/materialReturnInbound/' + returnId,
    method: 'delete'
  })
}
